﻿using PeaceBlogData;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web;
using System.Web.Http;

namespace PeaceBlog.Controllers.API
{
    public class FilesController : ApiController
    {
        private PeaceBlogEntity db = new PeaceBlogEntity();

        public int SingleFileUpload(string fileName)
        {
            var http = HttpContext.Current;
            if (http.Request.Files.Count > 0)
            {
                var file = http.Request.Files[0];
                if (file.ContentType.Contains("image"))
                {
                    
                }
            }
        }
    }
}
